<%@page import="java.lang.annotation.Target"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="henu.bean.Teacher"%>
<%@page import="java.util.List"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<body>
<form id="pagerForm" method="post" action="teacher.jsp">
	<input type="hidden" name="status" value="${param.status}">
	<input type="hidden" name="keywords" value="${param.keywords}" />
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="${model.numPerPage}" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
</form>


<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="teacherAction!search.action" method="post">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
			<!--
				<td>
					查询：
				</td>
				
				 <td>
					<select class="combox" name="method" >						
						<option value="num">按标题</option>
						<option value="name">按</option>
						<option value="year">按学年</option>
						
					
					</select>
				</td> -->
				
				<td>
					根据标题查询：<input type="text" name="keyword" />
				</td>
				
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
			
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="addNotice.jsp" target="dialog" rel="addNotice"><span>添加</span></a></li>
			<li><a class="delete" href="noticeAction!delete.action?id={sid_user}" target="ajaxTodo" title="确定要删除么"><span>删除</span></a></li>
			<li><a class="edit" href="noticeAction!updateInfo.action?id={sid_user}" target="dialog"><span>修改</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="exportAction?name=notice" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="120" align="center">标题</th>
				<th width="120" align="center">内容</th>
				<th width="120" align="center">发布人</th>
				<th width="100" align="center">发布时间</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="e" items="${notes}">
			
			<tr target="sid_user" rel="${e.id }">
				<td>${ e.fTitle }</td>
				<td>${ e.fContent }</td>
				<td>${ e.fPublisher }</td>
				<td>${ e.fTime }</td>
				
			</tr>
			</c:forEach>						
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="200">200</option>
			</select>
			<span>共${totalCount}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="200" numPerPage="20" pageNumShown="10" currentPage="1"></div>

	</div>
</div>

</body>
</html>